package com.soushangxing.comfyuibackendv2.repository

import com.soushangxing.comfyuibackendv2.entity.OrderEntity
import org.springframework.data.mongodb.repository.MongoRepository

interface OrderRepository : MongoRepository<OrderEntity,String> {
    fun findFirstByPromptIdAndStatus(promptId:String, status:String):OrderEntity?
    fun findFirstByPromptId(promptId:String):OrderEntity?

    fun findFirstByTaskId(taskId:String):OrderEntity?
}
